home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI539.ASC < prev    next >
Text File  |  1993-05-07  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  539
  9.   VERSION  :  3.0 & up
  10.        OS  :  DOS
  11.      DATE  :  May 7, 1993                              PAGE  :  1/2
  12.  
  13.     TITLE  :  Placing a Variable in a Report
  14.  
  15.  
  16.  
  17.  
  18.   Intended Audience:
  19.   All Paradox users
  20.  
  21.   Prerequisites:
  22.   You should be familiar with how to link tables in a report.
  23.  
  24.   Purpose of the TI:
  25.   This document illustrates how to place a variable in a report by
  26.   using a lookup table to hold the variable.
  27.  
  28.  
  29.      1.  Create a table called VARIABLE with the following fields:
  30.  
  31.               ╔═════Field Name════╦═Type═╗
  32.               ║ Variable Link     ║ A1*  ║
  33.               ║ Variable Contents ║ A80  ║
  34.  
  35.          NOTE: The * indicates that the field is keyed.
  36.  
  37.      2.  Your own Reporting Table should be restructured to have a
  38.          field of type A1.
  39.  
  40.      3.  In Report Design mode (or Report Change mode), press
  41.          [F10], then choose Field | Lookup | Link | Linked.
  42.          Specify VARIABLE as the Lookup table name.
  43.  
  44.      4.  Link the [Variable Link] field from the VARIABLE table to
  45.          the new A1 type field in your reporting table.
  46.  
  47.      5.  The A1 type field of both tables must always remain blank
  48.          (it cannot contain any data), to ensure the link.
  49.  
  50.      6.  Within the reporting table, in order to place the variable
  51.          information, place the field [Variable->Variable Contents]
  52.          wherever it is needed.  Make sure your variable
  53.          information has been placed in the [Variable Contents]
  54.          field.
  55.  
  56.      7.  At output time, the reporting table will look for a match
  57.          to the blank value in the linked field.  This match will
  58.          be the 1st and only record in the VARIABLE table, causing
  59.          the variable to be placed on the report.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  539
  75.   VERSION  :  3.0 & up
  76.        OS  :  DOS
  77.      DATE  :  May 7, 1993                              PAGE  :  2/2
  78.  
  79.     TITLE  :  Placing a Variable in a Report
  80.  
  81.  
  82.  
  83.  
  84.    
  85.   Suggested Reading:
  86.  
  87.   If you are using Paradox 4.0, refer to Chapter 8 of the User's
  88.   Guide for information on using lookup tables in reports.
  89.  
  90.   If you are using Paradox 3.0 or 3.5, refer to Chapter 4 of the
  91.   Presenting Data manual for information on using lookup tables in
  92.   reports.
  93.  
  94.  
  95.   DISCLAIMER: You have the right to use this technical information
  96.   subject to the terms of the No-Nonsense License Statement that
  97.   you received with the Borland product to which this information
  98.   pertains.
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.